package com.example.fontposition.startup;

import com.example.fontposition.service.IPositionService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
@Slf4j
public class PositionSearchRunner implements ApplicationRunner {
    @Autowired
    private IPositionService positionService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("开始预加载es数据");
        positionService.rebuildSearch();
    }
}
